home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2000 June / Internet Magazine June 2000.iso / pc / software / windows / building / wirefusion / html / rotate / bob50.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-01-03  |  1.4 KB  |  89 lines

  1. import java.awt.Event;
  2. import java.io.DataInputStream;
  3.  
  4. public class bob50 extends bob {
  5.    private double _$885;
  6.    private double _$893;
  7.    private double _$902;
  8.    private double _$912;
  9.    private boolean _$921;
  10.    private double _$925;
  11.  
  12.    // $FF: renamed from: rd (java.io.DataInputStream) void
  13.    public void method_0(DataInputStream var1) {
  14.       try {
  15.          this._$885 = var1.readDouble();
  16.          this._$902 = this._$925 = var1.readDouble();
  17.          this._$912 = var1.readDouble();
  18.       } catch (Exception var3) {
  19.       }
  20.  
  21.    }
  22.  
  23.    private void _$977(double var1, double var3) {
  24.       if (var1 < var3) {
  25.          for(double var5 = Math.ceil(var1); var5 < var3; ++var5) {
  26.             ((bob)this).ce(new bob10(var5), 2);
  27.          }
  28.       } else {
  29.          for(double var7 = Math.floor(var1); var7 > var3; --var7) {
  30.             ((bob)this).ce(new bob10(var7), 2);
  31.          }
  32.       }
  33.  
  34.    }
  35.  
  36.    private void _$1017(double var1) {
  37.       if (var1 > (double)1) {
  38.          if (this._$921) {
  39.             var1 %= (double)1;
  40.             if (this._$902 < this._$912 && var1 * (this._$912 - this._$902) + this._$902 < this._$925) {
  41.                this._$1017((double)1.0F);
  42.                this._$925 = this._$902;
  43.             } else if (this._$902 > this._$912 && var1 * (this._$912 - this._$902) + this._$902 > this._$925) {
  44.                this._$1017((double)1.0F);
  45.                this._$925 = this._$902;
  46.             }
  47.          } else {
  48.             var1 = (double)1.0F;
  49.             ((bob)this).el(0, 10);
  50.          }
  51.       }
  52.  
  53.       double var3 = var1 * (this._$912 - this._$902) + this._$902;
  54.       ((bob)this).ce(new bob10(var3), 1);
  55.       this._$977(this._$925, var3);
  56.       if (var1 == (double)1) {
  57.          ((bob)this).ce(new bob10(this._$912), 2);
  58.       }
  59.  
  60.       this._$925 = var3;
  61.    }
  62.  
  63.    // $FF: renamed from: he (java.awt.Event) void
  64.    public void method_1(Event var1) {
  65.       if (var1.id == 10) {
  66.          double var2 = ((double)super.m.ft - this._$893) / this._$885;
  67.          this._$1017(var2);
  68.       } else if (var1.id != 1 && var1.id != 2) {
  69.          if (var1.id == 3) {
  70.             ((bob)this).el(0, 10);
  71.          } else if (var1.id == 4) {
  72.             this._$902 = this._$925 = ((bob10)var1.arg).value;
  73.          } else if (var1.id == 5) {
  74.             this._$912 = ((bob10)var1.arg).value;
  75.          } else if (var1.id == 6) {
  76.             this._$885 = ((bob10)var1.arg).value;
  77.          }
  78.       } else {
  79.          this._$921 = var1.id != 1;
  80.          this._$893 = (double)super.m.ft;
  81.          this._$925 = this._$902;
  82.          this._$1017((double)0.0F);
  83.          ((bob)this).el(0, 10);
  84.          ((bob)this).sl(0, 10);
  85.       }
  86.  
  87.    }
  88. }
  89.